package com.lagou.service.impl;

import com.lagou.service.TpnService;

import org.apache.dubbo.config.annotation.Service;


@Service
public class TpnServiceImpl implements TpnService {

    @Override
    public String methodA(String name) {
        try {
            int i=(int)(100*Math.random());//随机生成0-100的数
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodA:"+name;
    }

    @Override
    public String methodB(String name) {
        try {
            int i=(int)(100*Math.random());//随机生成0-100的数
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodB:"+name;
    }

    @Override
    public String methodC(String name) {

        try {
            int i=(int)(100*Math.random());//随机生成0-100的数
            Thread.sleep(i);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "methodC:"+name;
    }
}